package com.felix.service;

import com.felix.annotation.MyLog;
import org.springframework.stereotype.Service;

/**
 * LogService
 *
 * @author xjh
 * @version 1.0
 * @date 2019-05-21
 */
@Service
public class LogService2 implements ILogService{

    @Override
    @MyLog
    public void method1(String name, Integer age) {
        try {
            Thread.sleep(5000);
            System.out.println("name:" + name + " ,age:" + age);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
